package com.wells.slide.vo;

import java.util.Locale;


import android.graphics.drawable.Drawable;

public class AppVo implements Comparable<AppVo>
{
    private String appName;
    private String appPackage;
    private String className;
    private Drawable appImage;

    public AppVo()
    {
    }

    public AppVo( String _appName,
                  String _appPackage,
                  String _className,
                  Drawable _appImage)
    {
        super();
        this.appName = _appName;
        this.appPackage = _appPackage;
        this.className = _className;
        this.appImage = _appImage;
    }
    
    public String getClassName()
    {
        return className;
    }

    public void setClassName( String _className )
    {
        this.className = _className;
    }
    
    public String getAppName()
    {
        return appName;
    }

    public void setAppName( String _appName )
    {
        this.appName = _appName;
    }
    
    public String getAppPackage()
    {
        return appPackage;
    }

    public void setAppPackage( String _appPackage )
    {
        this.appPackage = _appPackage;
    }
    
    public Drawable getAppImage()
    {
        return appImage;
    }

    public void setAppImage( Drawable _appImage )
    {
        this.appImage = _appImage;
    }
    
    public int compareTo( AppVo vo )
    {
        String n1 = appName.toUpperCase( Locale.getDefault() );
        String n2 = vo.appName.toUpperCase( Locale.getDefault() );
        return n1.compareTo( n2 );
    }

  

}
